<?php
include('../classDB.inc.php');

if(file_exists('definitions.inc.php')) include_once('definitions.inc.php');
if(file_exists('../definitions.inc.php')) include_once('../definitions.inc.php');
if(file_exists('../../../definitions.inc.php')) include_once('../../../definitions.inc.php');
if(file_exists('../../../../definitions.inc.php')) include_once('../../../../definitions.inc.php');

function OpenDB()
{
  //class for DB management
  $_DB = new classDB();
  $result = $_DB->open();
  
  return $result;
}
?>